package entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: NGUYEN VAN NHAN
 * Date: 9/19/14
 * Time: 8:49 PM
 * Long Van Soft Solution Sjc.
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table (name = "VIEW")
public class View implements Serializable{
    private String viewId;
    private int count;
    private Date updateTime;

    public View() {
    }

    @Id
    @Column(name = "viewId", length = 20)
    public String getViewId() {
        return viewId;
    }

    public void setViewId(String viewId) {
        this.viewId = viewId;
    }

    @Column (name = "count", length = 10)
    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Column (name = "updateTime", length = 50)
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
